From: E. Dunham Date: Mon, 22 Jan 2018 05:39:27 +0000 (-0800) Subject: Link to crate type docs X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~30^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=fd4f8410cf4884898adb83250caf9fe07d6657c6;p=cargo.git Link to crate type docs This page (served at https://doc.rust-lang.org/cargo/reference/manifest.html) is the first hit I get when searching "cargo crate-type". The doc which actually explains `crate-type`, https://doc.rust-lang.org/reference/linkage.html, does not appear in the first page of results. I hope that linking the reference doc here will make it easier for others to find instead of having to dig into closed GitHub issues like I did to find it. --- diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 9794f161e..a09e97dd5 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -613,7 +613,9 @@ compiled when you run your tests to protect them from bitrotting. You can run individual executable examples with the command `cargo run --example `. -Specify `crate-type` to make an example be compiled as a library: +Specify `crate-type` to make an example be compiled as a library (additional +information about crate types is available in +[the Cargo reference](https://doc.rust-lang.org/reference/linkage.html)): ```toml [[example]]